home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / src / lseek.c < prev    next >
C/C++ Source or Header  |  1996-01-04  |  242b  |  15 lines

  1. #include "amiga.h"
  2. #include "files.h"
  3. #include <fcntl.h>
  4.  
  5. int __lseek(int fd, long rpos, int mode)
  6. {
  7.     struct fileinfo *fi;
  8.  
  9.     __chkabort();
  10.     if (fi = _find_fd(fd)) {
  11.     return fi->lseek(fi->userinfo, rpos, mode);
  12.     }
  13.     return -1;
  14. }
  15.